define([
    'jquery',
    'underscore',
    'backbone',
    //'text!templates/form/form_add_admin.html'
    ], function($, _, Backbone,loginTemplate){
        var $html_loadding = '<div class="caculation-report"><img style="margin-left:170px" src="'+$template_admincp_url+'img/standard/loaders/loading64.gif"/></div>';
        var sliderView = Backbone.View.extend({
            el: $("#main"),
            initialize: function(){
				
            },
            events: {
                
            },
            
            view: function(){
                $("img.active").click(function(){
                    var temp;
                    var active = $base_url + 'public/images/icons/apply.png';
                    var deactive = $base_url + 'public/images/icons/disable.png';
                    var status = $(this).attr('src');
                    var id = $(this).attr('slide_id');
                    $.ajax({
                        url: $admincp_url + 'slider/check',
                        type: 'post',
                        data: 'status='+status+'&id='+id+'&active='+active+'&deactive='+deactive,
                        async: false,
                        success: function(html){
                            temp = html;
                        }
                        
                    });
                    $(this).attr("src", temp);
                    
                });
            },

            render: function(){
                if(typeof this[$app.action] != 'undefined'){
                    new this[$app.action];
                }
            }
        });
        return sliderView = new sliderView;
    });
